package com.dnb.webmash.playmaker.shared.mediatypes;

import java.util.ArrayList;
import java.util.Arrays;

import com.dnb.webmash.playmaker.shared.MediaType;
import com.dnb.webmash.playmaker.shared.PlayerType;

//TODO TEST THIS
public final class Viddler extends MediaType {

	static final String testPat = "viddler.com";
	static final ArrayList<String> mediaIDpats = new ArrayList<String>(Arrays.asList("viddler\\.com/player/(\\w*)/", "viddler\\.com/simple/(\\w*)/")); // removed "viddler\\.com/([^\"&]+)" causes repetition
	static final String sourceURL = "http://www.viddler.com/player/";
	static final String name = "Viddler";
	static final PlayerType type = PlayerType.FLASH;
	
	@Override
	public PlayerType getPlayerType() {return type;}
	
	@Override
	public String getTestPat() { return testPat;}

	@Override
	public ArrayList<String> getMediaIDPats() {return mediaIDpats;}

	@Override
	public String getSourceURL() {return sourceURL;}
	
	@Override
	public String getName() {return name;}
	
}
